/**
 * Project Name: jxlunit
 * File Name: EntityToJson
 * Package Name: com.dc.dcit.jxlunit
 *
 * @Date: 2019/8/19 19:48
 * @author Jetzhu
 * Copyright (c) 2019, ALL RIGHTS RESERVED
 */
package com.dc.dcit.jxlunit;

import com.dcpms.common.core.db.entity.DictInfoEntity;
import net.sf.json.JSONObject;
import org.junit.Test;

import java.io.IOException;

public class EntityToJson {

    @Test
    public void entityToJson() throws IOException {
        DictInfoEntity dictInfoEntity=new DictInfoEntity();
        JSONObject object = JSONObject.fromObject(dictInfoEntity);
        String str=object.toString();
        System.out.println("json of UserVO:"+str);

    }
}
